package com.springcloud.ribbon.controller;

import com.springcloud.ribbon.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: yc
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/hello/{param}")
    public String hello(@PathVariable("param") String param){
        return testService.hello(param);
    }
}
